
#ifndef _GLOBAL_DECLERATION_H_
#define _GLOBAL_DECLERATION_H_


#define IS_MENU_BUTTON_PRESSED 		(!GPIO_ReadInputPin(MENU_BUTTON_PORT, MENU_BUTTON_PIN))
#define IS_CURSOR_BUTTON_PRESSED 	(!GPIO_ReadInputPin(CURSOR_BUTTON_PORT, CURSOR_BUTTON_PIN))
#define IS_START_BUTTON_PRESSED 	(!GPIO_ReadInputPin(START_BUTTON_PORT, START_BUTTON_PIN))
#define IS_STOP_BUTTON_PRESSED 		(!GPIO_ReadInputPin(STOP_BUTTON_PORT, STOP_BUTTON_PIN))
#define IS_UP_BUTTON_PRESSED 		(!GPIO_ReadInputPin(UP_BUTTON_PORT, UP_BUTTON_PIN))
#define IS_DOWN_BUTTON_PRESSED		(!GPIO_ReadInputPin(DOWN_BUTTON_PORT, DOWN_BUTTON_PIN))

typedef enum {
	CURSOR_POSITION_NONE,
	CURSOR_POSITION_RPM,
	CURSOR_POSITION_TIME,
	CURSOR_POSITION_MAXNUMBER
}CURSOR_POSITION;

#define MAX_RPM 4000
#define MIN_RPM	3000

#define MAX_TIME 30
#define MIN_TIME 1


#endif